<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html">
  <head>
    <title>Hello, World!</title>
  </head>
  <body>
    <h:form id="app-form">
      <p>
        <h:outputLabel for="name" value="Enter your name" required="true" />
        <h:inputText id="name" value="#{greetingForm.name}" />
        <h:message for="name" />
      </p>
      <p>
        <h:commandButton id="submit" value="Say hello" action="#{greetingForm.submit()}">
        </h:commandButton>
      </p>
      <p>
        <h:outputText id="output-message" value="#{greetingForm.message}" />
      </p>
    </h:form>
  </body>
</html>
